Skip to content

Test that the fixups are generated if display name is empty #1267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 14, 2025

Conversation

jerryjrchen
Copy link
Contributor

@jerryjrchen jerryjrchen commented Aug 14, 2025

No functional change: just adds new test cases for the change in #1256

Motivation:

Slightly improves effective test coverage for Stuart's earlier change.

Modifications:

  • Moved the tests previously added to apiMisuseErrors -> apiMisuseErrorsIncludingFixIts, and include the expected fixits

    It would probably be ok to leave them in apiMisuseErrors as well, but I think it would be kinda redundant since we also test the expected message along with the fixits already.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

No functional change: just adds new test cases for the change in swiftlang#1256

* Moved the tests previously added to `apiMisuseErrors` ->
  `apiMisuseErrorsIncludingFixIts`, and include the expected fixits

  It would probably be ok to leave them in `apiMisuseErrors` as well,
  but I think it would be kinda redundant since we also test the
  expected message along with the fixits already.
@grynspan grynspan added enhancement New feature or request macros 🔭 Related to Swift macros such as @Test or #expect labels Aug 14, 2025
@grynspan grynspan added this to the Swift 6.x (main) milestone Aug 14, 2025
@jerryjrchen
Copy link
Contributor Author

@swift-ci test

@jerryjrchen jerryjrchen merged commit 9faef9b into swiftlang:main Aug 14, 2025
3 checks passed
@jerryjrchen jerryjrchen deleted the test-for-empty-name-fixups branch August 14, 2025 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request macros 🔭 Related to Swift macros such as @Test or #expect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants